package com.viego.financialrecommendsystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.viego.financialrecommendsystem.entity.Discuss;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface DiscussMapper extends BaseMapper<Discuss> {

    Integer collect(Long discussId);

//    int saveComment(String id, String content);

    int addCollect(String userId, String discussId);

    Integer isCollected(long userId, long discussId);

    List<String> type();

    int removeCollect(long userId, long discussId);
}
